package com.fuyao.cloud.common.biz.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class AbstractEntity extends PersistableEntity<Long> {

	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;

	@TableField(fill = FieldFill.UPDATE)
	@ApiModelProperty(value="修改时间")
	private LocalDateTime updateTime;

	@TableLogic
	@ApiModelProperty(value="删除标记,1:已删除,0:正常")
	private String delFlag;
}
